﻿package foli
{
	import foli.Foto;
	
	import org.papervision3d.objects.DisplayObject3D;
	import org.papervision3d.objects.primitives.Plane;
	import org.papervision3d.materials.ColorMaterial;
	import org.papervision3d.materials.utils.MaterialsList;	
	
	public class Slab extends DisplayObject3D
	{
		static var width: int = 20;
		static var height: int = 20;
		static var depth: int = 1;
		
		private var foto: Foto = null;
						
		public function Slab( f: Foto ):void
		{
			// store a reference to the originating album
			foto = f;
					
			// create gfx
			this.addChild( createVisual() );	
		}
		
		private function createVisual(): DisplayObject3D
		{
			var p: Plane = new Plane( new ColorMaterial(0x88aaff), width, height );
			return p;
		}
		
	}
	
}